<form class="layui-form m20">
    <div class="layui-form-item">
        <label class="layui-form-label">幻灯标题</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" lay-verify="required" placeholder="请输入标题" name="name" value="{$slide.name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">幻灯封面</label>
        <div class="layui-input-block">
            <div class="cover-upload">
                <img data-path="__UPLOAD__" id="edit-cover-src" data-src="{$slide.cover}" {empty name="slide.cover"}class="hidden"{else/}src="__UPLOAD__/{$slide.cover}"{/empty}>
                <div class="site-demo-upbar mt10">
                    <input type="file" name="cover" class="layui-upload-file"  lay-ext="jpg|png|gif" id="edit-cover">
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">幻灯链接</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" lay-verify="required" placeholder="请输入链接地址" name="url" value="{$slide.url}">
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">幻灯摘要</label>
        <div class="layui-input-block">
            <textarea class="layui-textarea" placeholder="请输入摘要" name="desc">{$slide.desc}</textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">幻灯排序</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" placeholder="10" name="sort" value="{$slide.sort}">
        </div>
    </div>
    <div class="layui-input-block">
        <input type="hidden" name="id" value="{$slide.id}">
        <a class="layui-btn save-btn layui-btn-normal" lay-filter="save" lay-submit>保存</a>
        <input type="reset" class="layui-btn layui-btn-primary goback" value="重置">
    </div>
</form>
